package top.guxx.springframework.test.beans;

/**
 * @Author：Guxx
 * @Description：
 * @Date：2024/6/8 21:18
 * @Filename：UserService
 */
public class UserService {
    private String uId;

    private UserDao userDao;

    public String queryUserInfo() {
        return userDao.queryUserName(uId);
    }
    public void queryUserInfoEx() {
        System.out.println("查询用户信息");
    }
    public void queryUserInfoWithId() {
        System.out.println("查询用户信息：" + userDao.queryUserName(uId));
    }


    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public String toString() {
        return "UserService{" +
                "uId='" + uId + '\'' +
                ", userDao=" + userDao +
                '}';
    }
}
